home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1999 Spring / macformat-077.iso / Demos / RealPool Demo / 3D.DAT / 00023.ls < prev    next >
Encoding:
Text File  |  1998-05-02  |  517 b   |  24 lines

  1. global roomp, matchp
  2.  
  3. on mouseDown
  4.   set ml to ((the mouseV - the top of sprite the clickOn) / (the height of cast the number of member the castNum of sprite the clickOn / 2)) + 1
  5.   if (ml < 1) or (ml > 5) then
  6.     exit
  7.   end if
  8.   set playermode2 to ml - 1
  9.   case playermode2 of
  10.     0:
  11.       set roomp to not roomp
  12.     1:
  13.     2:
  14.       if the soundLevel <> 0 then
  15.         set the soundLevel to 0
  16.       else
  17.         set the soundLevel to 7
  18.       end if
  19.     3:
  20.       set matchp to not matchp
  21.   end case
  22.   cursor(-1)
  23. end
  24.